package model;

import java.sql.Date;

public class User {
	String ten;
	String ho;
	String email;
	String matkhau;
	int gioitinh;
	Date sinhnhat;
	String diachi;
	String tinhthanh;
	String nghenghiep;
	int tinhtranghonnhan;

	public User() {

	}

	public User(String ten, String ho, String email, String matkhau,
			int gioitinh, Date sinhnhat) {
		this.ten = ten;
		this.ho = ho;
		this.email = email;
		this.matkhau = matkhau;
		this.gioitinh = gioitinh;
		this.sinhnhat = sinhnhat;
	}

	public User(String ten, String ho, int gioitinh, Date sinhnhat,
			String diachi, String tinhthanh, String nghenghiep,
			int tinhtranghonnhan) {

		this.ten = ten;
		this.ho = ho;
		this.gioitinh = gioitinh;
		this.sinhnhat = sinhnhat;
		this.diachi = diachi;
		this.tinhthanh = tinhthanh;
		this.nghenghiep = nghenghiep;
		this.tinhtranghonnhan = tinhtranghonnhan;
	}

	public String getTen() {
		return ten;
	}

	public void setTen(String ten) {
		this.ten = ten;
	}

	public String getHo() {
		return ho;
	}

	public void setHo(String ho) {
		this.ho = ho;
	}

	public String getEmail() {
		return email;
	}

	public void setEmail(String email) {
		this.email = email;
	}

	public String getMatkhau() {
		return matkhau;
	}

	public void setMatkhau(String matkhau) {
		this.matkhau = matkhau;
	}

	public int getGioitinh() {
		return gioitinh;
	}

	public void setGioitinh(int gioitinh) {
		this.gioitinh = gioitinh;
	}

	public Date getSinhnhat() {
		return sinhnhat;
	}

	public void setSinhnhat(Date sinhnhat) {
		this.sinhnhat = sinhnhat;
	}

	public String getDiachi() {
		return diachi;
	}

	public void setDiachi(String diachi) {
		this.diachi = diachi;
	}

	public String getTinhthanh() {
		return tinhthanh;
	}

	public void setTinhthanh(String tinhthanh) {
		this.tinhthanh = tinhthanh;
	}

	public String getNghenghiep() {
		return nghenghiep;
	}

	public void setNghenghiep(String nghenghiep) {
		this.nghenghiep = nghenghiep;
	}

	public int getTinhtranghonnhan() {
		return tinhtranghonnhan;
	}

	public void setTinhtranghonnhan(int tinhtranghonnhan) {
		this.tinhtranghonnhan = tinhtranghonnhan;
	}

	@Override
	public String toString() {
		return "Tên: " + ten + "\n" + "Họ: " + ho + "\n" + "Email: " + email
				+ "\n" + "Mật khẩu: " + matkhau + "\n" + "Giới tính: "
				+ gioitinh + "\n" + "Sinh nhật: " + sinhnhat + "\n"
				+ "Địa chỉ: " + diachi + "\n" + "Thành phố:" + tinhthanh + "\n"
				+ "Nghề nghiệp: " + nghenghiep + "\n" + "Tình trạng hôn nhân:"
				+ tinhtranghonnhan;
	}
}
